/**
 * Copyright 2017 Google Inc. All rights reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
ul.literate {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0;
}
ul.literate li {
  margin: 0;
  padding: 0;

  display: flex;
  align-items: stretch;

  border: 0;
}
ul.literate li.blockcomment {
  border-top: 1px solid rgba(0, 0, 0, 0.24);
}
ul.literate li.blockcomment:first-of-type {
  border-top: none;
}
ul.literate li.empty {
  display: none;
}
ul.literate > li > .literate-text,
ul.literate > li > .literate-code {
  padding: 1em;
}
ul.literate > li > .literate-text {
  flex-shrink: 0;
  padding-right: 2em;
  width: 300px;
}
ul.literate > li > .literate-code {
  border-left-width: 1px;
  border-left-style: solid;
  border-left-color: rgba(0, 0, 0, 0.25);
  padding-left: 2em;
  flex-shrink: 1;
  flex-grow: 1;
  overflow-x: auto;
  box-sizing: content-box;
}
ul.literate > li > code > * {
  width: 100%;
}
ul.literate > li:first-of-type > .literate-code,
ul.literate > li:first-of-type > .literate-text {
  padding-top: 2em;
}
ul.literate > li:last-of-type > .literate-code,
ul.literate > li:last-of-type > .literate-text {
  padding-bottom: 2em;
}

@media (max-width: 1400px) {
  ul.literate li {
    flex-direction: column;
  }
  ul.literate li > .literate-text {
    margin: 1em 0 0 0;
    padding-bottom: 0;
  }

  ul.literate .literate-text.empty {
    display: none;
  }
  ul.literate .literate-text.empty + code {
    padding-top: 1em;
  }
  ul.literate li.blockcomment {
    margin-top: 1em;
  }
  ul.literate > li:last-of-type > .literate-text {
    padding-bottom: 0;
  }
}

.demo {
  width: 100%;
  border: 0;
  margin: 0;
}
.literate-code .empty {
  display: none;
}

code.literate-code {
  white-space: pre;
}
code.literate-code .indent {
  border-left: 1px solid hsla(0, 0%, 0%, 0.1);
}
code.literate-code.example {
  display: block;
  margin: 20px 0;
  padding: 20px;
}
pre.prettyprint {
  width: 100%;
  margin: 0;
  line-height: initial;
}
